package com.visceb.backstage.dao;
import org.springframework.data.jpa.repository.JpaRepository;
import com.visceb.backstage.entity.User;
import java.util.List;
//springboot使用jpa,spring data jpa
public interface userRepository extends JpaRepository<User, Long>{
//    User findById(int id);
    User findByUsername(String username);
//    List<User> findAllByName(String name);
}
